package com.modbus.tcp.domain;

import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import org.springframework.stereotype.Repository;

import java.io.Serializable;
import java.util.Date;

/**
 * 球阀modbus数据表 ballvalvedata
 *
 * @author d
 * @date 2024-01-11
 */
@Data
@Repository
public class Ballvalvedata implements Serializable {
    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "传感器数据ID")
    @TableField(value = "sensordataid")
    private Integer sensordataid;

    @ApiModelProperty(value = "灭火位置ID")
    @TableField(value = "id")
    private Integer id;

    @ApiModelProperty(value = "球阀ID")
    @TableField(value = "ballvalueid")
    private Integer ballvalueid;

    @ApiModelProperty(value = "分区编号")
    @TableField(value = "partcode")
    private Integer partcode;


    @ApiModelProperty(value = "名称")
    @TableField(value = "name")
    private String name;


    @ApiModelProperty(value = "采集通道编号")
    @TableField(value = "channelcode")
    private Integer channelcode;


    @ApiModelProperty(value = "传感器数据")
    @TableField(value = "sensorvalue")
    private Float sensorvalue;


    @ApiModelProperty(value = "修改时间")
    @TableField(value = "datadate")
    private Date datadate;

    @ApiModelProperty(value = "传感器数据组")
    @TableField(exist = false)
    private  String sensorvaluestr;

    @ApiModelProperty(value = "传感器名称组")
    @TableField(exist = false)
    private  String sensornamestr;

    @ApiModelProperty(value = "传感器报警值组")
    @TableField(exist = false)
    private  String alarmvaluestr;

    @TableField(exist = false)
    private  float alarmvalue;

    @TableField(exist = false)
    private  String stopfilename;

    @TableField(exist = false)
    private  String hostaddr;

    @TableField(exist = false)
    private  int port;

    @TableField(exist = false)
    private  String sensorname;

    @TableField(exist = false)
    private  int  slaveaddr;


}